package com.evil.application.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.evil.application.pojo.entity.ApplicationJudge;
import com.evil.common.application.dto.judge.JudgeSourceDTO;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 应用判断条件表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public interface ApplicationJudgeMapper extends BaseMapper<ApplicationJudge> {

    List<ApplicationJudge> findBySource(JudgeSourceDTO source);

    List<ApplicationJudge> findBySources(@Param("sources") Collection<JudgeSourceDTO> sources);
}
